//
//  UINavigationController+SpecificController.m
//  DaBaiSite
//
//  Created by victor on 16/3/2.
//  Copyright © 2016年 admin. All rights reserved.
//

#import "UINavigationController+SpecificController.h"

@implementation UINavigationController (SpecificController)

-(void)popToSPecificControllerClass:(Class )controllerClass InCurrentController:(UIViewController *)vc{
    
    
    for (UIViewController *controller in vc.navigationController.childViewControllers) {
        
        
        if ([controller isKindOfClass:controllerClass]) {
            
            [vc.navigationController popToViewController:controller
                                                  animated:YES];
            
            break;
        }
    }
}

@end
